<style>
    .a_etiquetas{
        float: left;
        margin: 0 3px 0 3px;
        height: 23pt;
    }
    .a_rubros{
        color: black;
        font-family: fantasy;
        font-size: 16px;
        vertical-align: bottom;

    }
</style>
<div class="grid_3 " style="background: #dddddd; text-align: left">
    <div class="grid_3 alpha omega" style="margin: 10px 0px 10px 10px;">
        <div id="rubros">
            <ul style=" margin: 0px; padding: 0px; list-style: none;   ">
                <?php
                foreach ($rubros as $var):
                    echo "<li style='margin:0px; border:0px; '>" . $var . "</li>";
                endforeach;
                ?>
            </ul> 
        </div> 
    </div>
</div>
<div class="grid_9" style="background: #c5d326;" >

    <?php foreach ($empresas as $var): ?>
        <div class="grid_9 alpha omega">
            <p><?php echo $var->empresa ?></p>
            <p><?php echo $var->etiquetas ?>fdf</p>
            <p style="text-align: right"><label id="a_<?php echo $var->id ?>" onclick="load(<?php echo $var->id ?>);" >Mostrar Datos</label></p>
        </div> 
    <div>
         <?php 
        $array_etiquetas=explode(",",$var->etiquetas);
        foreach($array_etiquetas as $v):
        ?>
            <a rel="tag" href="<?php echo base_url() ?>san-rafael/<?php echo $v ?>"><?php echo $v ?></a>
        <?php endforeach ?>
    </div>
        <div class="grid_9 alpha omega" style="display: none" id="div_<?php echo $var->id ?>">
            <p><label id="direccion_<?php echo $var->id ?>">Dirección:</label></p>
            <p><label id="fijo_<?php echo $var->id ?>">Fijo:</label></p>
            <p><label id="celular_<?php echo $var->id ?>">Celular:</label></p>
        </div>
        <div class="grid_9 alpha omega" style="background: #ffffff">
            </br>
        </div>
    <?php endforeach; ?>
</div>